i40e: Add kconfig dependency to ensure cmpxchg64() is available
authorBen Hutchings <ben@decadent.org.uk>
Thu, 15 Mar 2018 19:02:28 +0000 (19:02 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 6 Sep 2018 14:32:14 +0000 (15:32 +0100)
i40e again uses cmpxchg64(), which isn't available in some 32-bit SMP
configurations.  It seems reasonable to expect that 40G hardware is
not used on 32-bit systems.

Fixes: 60f481b97038 ("i40e: change flags to use 64 bits")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name i40e-build-for-64-bit-targets-only.patch

drivers/net/ethernet/intel/Kconfig

index 1ab613eb5796420c217d66287f72592c5875a55d..66d1fc01b695c49328ef0d7006616d1300d10d8e 100644 (file)
@@ -215,6 +215,7 @@ config I40E
        tristate "Intel(R) Ethernet Controller XL710 Family support"
        imply PTP_1588_CLOCK
        depends on PCI
+       depends on 64BIT || X86_CMPXCHG64
        ---help---
          This driver supports Intel(R) Ethernet Controller XL710 Family of
          devices.  For more information on how to identify your adapter, go